<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>基本资料</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script type="text/javascript" src="jquery-1.9.1.js"></script>
    <style type="text/css" rel="stylesheet">
        .con {
            width: 800px;
            height: 600px;
            margin: 0 auto;
            margin-top: 80px;
        }

        .con .con-headup {
            width: 400px;
            height: 200px;
        }
    </style>
</head>

<body>
<form action="/admin.do" method="post" enctype="multipart/form-data">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;    margin-left: 400px;">
        <legend>基本信息填写</legend>
    </fieldset>
    <div class="con-headup">
        <div class="con" style="margin-top: 10px;">
            <label class="layui-form-label">头像：</label>
            <img src="untitled.png" width="180px" height="180px">
            <button class="layui-btn layui-btn-primary layui-btn-sm" style="margin-top: -112px;margin-left: 72px;">换一换
            </button>
            <input id="test1" type="file" name="myfile"
                   style=" float: right ; margin-right: 231px; margin-top: -38px;width: 214px;" a>上传图片
            </input>

            <div class="layui-form-item" style="margin-top: 20px">
                <div class="layui-inline">
                    <label class="layui-form-label">昵称：</label>
                    <div class="layui-input-inline">
                        <input name="adminname" class="layui-input" type="tel" autocomplete="off"
                               lay-verify="required|phone"
                               style="width: 350px">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">城市：</label>
                <div class="layui-input-inline">
                    <select name="city1">
                        <option value="">请选择省</option>
                        <option value="浙江" selected="">浙江省</option>
                        <option value="你的工号">江西省</option>
                        <option value="你最喜欢的老师">福建省</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="city2">
                        <option value="">请选择市</option>
                        <option value="杭州">杭州</option>
                        <option disabled="" value="宁波">宁波</option>
                        <option value="温州">温州</option>
                        <option value="温州">台州</option>
                        <option value="温州">绍兴</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="city3">
                        <option value="">请选择县/区</option>
                        <option value="西湖区">西湖区</option>
                        <option value="余杭区">余杭区</option>
                        <option value="拱墅区">临安市</option>
                    </select>
                </div>
            </div>


            <div class="layui-form-item" pane="">
                <label class="layui-form-label" style="margin-top: -10px;">性别：</label>
                <div class="layui-input-block" style="    margin-top: 21px;">
                    <input name="sex" title="男" type="radio" checked="" value="男" style="height: 12px;"><span
                        style="  margin-left: 13px;">男</span>
                    <input name="sex" title="女" type="radio" value="女" style="  margin-left: 10px;height: 12px;"><span
                        style="    margin-left: 14px;">女</span>
                    <input name="sex" title="禁用" disabled="" type="radio" value="禁"
                           style="    margin-left: 7px;height: 12px;"><span style="  margin-left: 13px;">保密</span>
                </div>
            </div>

            <div class="layui-form-item layui-form-text" style="width: 448px;">
                <label class="layui-form-label">个性签名：</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea" placeholder="请输入内容" name="sign"></textarea>
                </div>
                <div style="margin-top: 10px;"><label style="    margin-left: 111px; margin-top: 5px">还可以输入128个字</label>
                </div>
            </div>
            <button class="layui-btn" lay-filter="demo1" lay-submit="" style="    margin-left: 107px; margin-top: 4px;" id="but"
                    type="submit">
                立即提交
            </button>
        </div>
    </div>
    <script src="layui/layui.all.js"></script>
    <script>
         $("#but").click(function () {
             window.parent.$img.attr("src","untitled.png");
             window.parent.$iframe1.attr("src","articlepublish.html");
             layui.use(['layer' ], function(){
                 var layer = layui.layer
                 layer.msg('成功提交');
             });



         })



    </script>
</form>
</body>
</html>